package com.gs.xbinfomytest.entity.dsl;

import com.gitee.hengboy.mybatis.enhance.dsl.expression.ColumnExpression;
import com.gitee.hengboy.mybatis.enhance.dsl.expression.TableExpression;
import com.gs.xbinfomytest.entity.SysDept;

/**
 * 部门表
 * @author ApiBoot Mybatis Enhance Codegen
 */
public class DSysDept extends TableExpression<SysDept> {

    public DSysDept(String root) {
        super(root);
    }

    public static DSysDept DSL() {
        return new DSysDept("sys_dept");
    }

    /**
     * 部门id
     */
    public ColumnExpression deptId = new ColumnExpression("dept_id", this);
    /**
     * 父部门id
     */
    public ColumnExpression parentId = new ColumnExpression("parent_id", this);
    /**
     * 祖级列表
     */
    public ColumnExpression ancestors = new ColumnExpression("ancestors", this);
    /**
     * 部门名称
     */
    public ColumnExpression deptName = new ColumnExpression("dept_name", this);
    /**
     * 显示顺序
     */
    public ColumnExpression orderNum = new ColumnExpression("order_num", this);
    /**
     * 负责人
     */
    public ColumnExpression leader = new ColumnExpression("leader", this);
    /**
     * 联系电话
     */
    public ColumnExpression phone = new ColumnExpression("phone", this);
    /**
     * 邮箱
     */
    public ColumnExpression email = new ColumnExpression("email", this);
    /**
     * 部门状态（0正常 1停用）
     */
    public ColumnExpression status = new ColumnExpression("status", this);
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    public ColumnExpression delFlag = new ColumnExpression("del_flag", this);
    /**
     * 创建者
     */
    public ColumnExpression createBy = new ColumnExpression("create_by", this);
    /**
     * 创建时间
     */
    public ColumnExpression createTime = new ColumnExpression("create_time", this);
    /**
     * 更新者
     */
    public ColumnExpression updateBy = new ColumnExpression("update_by", this);
    /**
     * 更新时间
     */
    public ColumnExpression updateTime = new ColumnExpression("update_time", this);
    @Override
    public ColumnExpression[] getColumns() {
        return new ColumnExpression[]{deptId, parentId, ancestors, deptName, orderNum, leader, phone, email, status, delFlag, createBy, createTime, updateBy, updateTime};
    }

}

